//
//  CPYListViewTableViewCell.m
//  TTMusic
//
//  Created by chenpengyu on 16/4/10.
//  Copyright © 2016年 cpy. All rights reserved.
//

#import "CPYListViewTableViewCell.h"

@implementation CPYListViewTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.numLabel = [[UILabel alloc] init];
        self.songAndSingerLabel = [[UILabel alloc] init];
        self.numLabel.textAlignment = NSTextAlignmentCenter;
//        self.imageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_numLabel];
        [self.contentView addSubview:_songAndSingerLabel];
    }
    return  self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _numLabel.frame = CGRectMake(0, 0, 25, self.contentView.bounds.size.height);
    
    _songAndSingerLabel.frame = CGRectMake(40, 5, self.contentView.bounds.size.width - 100, self.contentView.bounds.size.height - 10);
    
    _songAndSingerLabel.textColor = [UIColor grayColor];
}
//- (void)setCurrent:(BOOL)current {
//    _current = current;
//    if (_current) {
//        self.imageView.frame = CGRectMake(self.contentView.bounds.size.width - 30, 0, 30, self.contentView.bounds.size.height);
//        self.imageView.image = [UIImage imageNamed:@"VCPlay"];
//        self.contentView.backgroundColor = COLOR(239, 238, 239);
//    }
//    else{
//        self.contentView.backgroundColor = COLOR(226, 226, 226);
//    }
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
